<?php

namespace App\Models\Admin;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class SysDictType extends Model
{
    use HasFactory;

    protected $fillable = [
        'name', 'code', 'status', 'remark'
    ];

    public function dicts()
    {
        return $this->hasMany(SysDict::class, 'type_code', 'code');
    }
}
